package zhieasy.cn.service.found;


import com.baomidou.mybatisplus.core.metadata.IPage;
import zhieasy.cn.common.vo.ResultVO;
import zhieasy.cn.model.found.LafCategory;
import zhieasy.cn.model.found.LostAndFind;

/**
 * @author wangzeya
 * @create 2020-08-02 0:01
 */
public interface LafService {
    /**
     * 查找所有分类
     * @return
     */
    public ResultVO<LafCategory> findAllCategory();

    /**
     * 创建失物招领
     * @return
     */
    public ResultVO creatLaf(LostAndFind lostAndFind);
    /**
     * 查询失物招领列表
     */
    public ResultVO<IPage<LostAndFind>> findLafList(int pageNum, int pageSize, int lafType, int lafCtgId);

    /**
     * 查询失物招领详细信息
     */
    public ResultVO<LostAndFind> findLafDetail(String id);


    /**
     * 搜索laf
     */
    public ResultVO<IPage<LostAndFind>> findLafByLafName(int pageNum, int pageSize, String lafName);
}

